package com.tianji.learning.util;

/**
 * @author Xinxuan Zhuo
 * @version 2024/3/19
 * <p>
 * 存放动态表名
 * </p>
 */

public class TableInfoContext {

    private static final ThreadLocal<String> TL = new ThreadLocal<>();


    public static void set(String tableName){
        TL.set(tableName);
    }

    public static String get(){
        return TL.get();
    }


    public static void remove(){
        TL.remove();
    }


}
